<template>
    <div>{{$store.state.user.profile.account}}</div>
    <button @click="$store.commit('user/setUser',{account:'456'})">设置用户信息</button>
</template>

<script>
import { useStore } from 'vuex'
  export default{
    name:'App',
   
  }
</script>

<style>

</style>
